package com.carrental.api.pms.domain.vo;

import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.carrental.common.annotation.ExcelDictFormat;
import com.carrental.common.convert.ExcelDictConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;



/**
 * 线下网点视图对象 pms_store
 *
 * @author liangyi
 * @date 2022-03-20
 */
@Data
@ApiModel("线下网点视图对象")
@ExcelIgnoreUnannotated
public class PmsStoreVo {

    private static final long serialVersionUID = 1L;

    /**
     * 网点id
     */
    @TableId(value = "store_id")
    private Long storeId;
    /**
     * 门店负责人id
     */
    @ExcelProperty(value = "门店负责人id")
    @ApiModelProperty("门店负责人id")
    private Long managerId;

    /**
     * 经纬度
     */
    @ExcelProperty(value = "经纬度")
    @ApiModelProperty("经纬度")
    private String position;

    /**
     * 门店名字
     */
    @ExcelProperty(value = "门店名字")
    @ApiModelProperty("门店名字")
    private String storeName;

    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    @ApiModelProperty("联系电话")
    private String telephone;

    /**
     * 联系邮箱
     */
    @ExcelProperty(value = "联系邮箱")
    @ApiModelProperty("联系邮箱")
    private String email;

    /**
     * 门店地址
     */
    @ExcelProperty(value = "门店地址")
    @ApiModelProperty("门店地址")
    private String address;

    /**
     * 营业开始时间
     */
    @ExcelProperty(value = "营业开始时间")
    @ApiModelProperty("营业开始时间")
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime openHour;

    /**
     * 营业结束时间
     */
    @ExcelProperty(value = "营业结束时间")
    @ApiModelProperty("营业结束时间")
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime closeHour;

    /**
     * 是否启用
     */
    @ExcelProperty(value = "是否启用", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "store_enable")
    @ApiModelProperty("是否启用")
    private Integer isEnabled;


}
